package com.whu.exam.modules.paper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


@Data
@TableName("el_paper_qu")
public class PaperQu extends Model<PaperQu> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ApiModelProperty(value = "ID", required=true)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 试卷ID
     */
    @TableField("paper_id")
    @ApiModelProperty(value = "试卷ID", required=true)
    private String paperId;

    /**
     * 题目ID
     */
    @ApiModelProperty(value = "题目ID", required=true)
    @TableField("qu_id")
    private String quId;

    /**
     * 题目类型
     */
    @ApiModelProperty(value = "题目类型", required=true)
    @TableField("qu_type")
    private Integer quType;

    /**
     * 是否已答
     */
    @ApiModelProperty(value = "是否已答", required=true)
    private Boolean answered;

    /**
     * 主观答案
     */
    @ApiModelProperty(value = "主观答案", required=true)
    private String answer;

    /**
     * 问题排序
     */
    @ApiModelProperty(value = "问题排序", required=true)
    private Integer sort;

    /**
     * 单题分分值
     */
    @ApiModelProperty(value = "单题分分值", required=true)
    private Integer score;

    /**
     * 实际得分(主观题)
     */
    @ApiModelProperty(value = "实际得分(主观题)", required=true)
    @TableField("actual_score")
    private Integer actualScore;

    /**
     * 是否答对
     */
    @ApiModelProperty(value = "是否答对", required=true)
    @TableField("is_right")
    private Boolean isRight;

}
